package com.morgankelly.action;

import com.morgankelly.util.Constants;
import com.opensymphony.xwork2.ActionContext;

@SuppressWarnings("serial")
public class ColorAction extends BaseAction {
    
	public String input() {
		
		if (color == null || color.equals("")) {
			color= Constants.COLOR_GREEN;
		}
		
		ActionContext.getContext().getSession().put("color", color);
		
		initSideBar();
		return INPUT;
	}

    private String color;

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}
    
    
}
